﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EraNet.Core.Model.Drivings;

namespace EraNet.Services.Drivings
{
    public partial interface IDrivingSchoolService
    {
        bool AddEntity(DrivingSchool entity);
        bool DeleteEntity(int id);
        bool UpdateEntity(DrivingSchool entity);
        DrivingSchool GetById(int id);
        DrivingSchool GetByFunc(Func<DrivingSchool,bool> whereLambda);
        List<DrivingSchool> GetList<O>(Func<DrivingSchool, bool> whereLambda,Func<DrivingSchool,O> orderByLambda);
        List<DrivingSchool> GetPageList<O>(Func<DrivingSchool, bool> whereLambda, int pageIndex, int pageSize, Func<DrivingSchool, O> orderByLambda, out int pageCount);
    }
}
